package data;

import java.util.Arrays;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XmlRootElement(name="compoundarray")
@XStreamAlias("compoundarray")
public class CompoundArrayContainer {
	@XmlElement
	public CompoundContainer[] values;

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + Arrays.hashCode(values);
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompoundArrayContainer other = (CompoundArrayContainer) obj;
		if (!Arrays.equals(values, other.values))
			return false;
		return true;
	}
	
	
}
